/**
  ******************************************************************************
  * File Name          : motor_wheel.h
  * Description        : This file contains the common defines of the application
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MOTOR_WHEEL_H
#define __MOTOR_WHEEL_H
/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"
#include "stm32f1xx.h"

#define   MAX_MOTOR_WHEELS  4

/* Private define ------------------------------------------------------------*/
typedef struct
{
    uint64_t        total_hall_count;     ///* total number of the in pulse count
    uint64_t        current_hall_count;
    uint64_t        previous_hall_count;

    GPIO_PinState   previous_pin_status;

    int             duty_cycle;

} MOTOR_WHEEL_TypeDef;

//void init_motor_wheel (MOTOR_WHEEL_TypeDef *wheel);
void init_motor_wheels (void);


#endif /* __MOTOR_WHEEL_H */

